package net.xju.service;

import net.xju.common.utils.PageInfo;
import net.xju.entity.Announcement;

import java.util.List;

public interface AnnouncementService {
    List<Announcement> list();

    Announcement selectById(int id);

    void insert(Announcement announcement);

    Boolean update(Announcement announcement);

    boolean deleteById(int id);

    PageInfo<Announcement> pageList(String title, Integer pageNo, Integer pageSize);
}